package ooExercise.day04;

public class Dog extends Animal implements Swim{
    public Dog(String name, int age, String color, String food) {
        super(name, age, color, food);
    }
    void eat(){
        System.out.println("一只" + color + "颜色,今年" + age + "岁了,名字叫" + name + "的狗狗,正在啃骨头");
    }
    public void swim(){
        System.out.println("有一只金毛,名字叫" + name + "的,是" + color + "颜色的,它今年" + age + "岁了,现在正在河边游泳");
    }
    void lookHome() {
        System.out.println("一只名叫" + name + "的边牧,在家门口看家,它有一身" + color + "的毛毛,它年快" + age + "岁了");
    }
}
